import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'


//信息列表查询
export const informationListService = (params)=>{
   return  request.get('/information',{params:params})
}

//信息发布
export const informationAddService = (informationData)=>{
    return request.post('/information',informationData);

}

//编辑信息
export const informationUpdateService = (informationData)=>{
    return request.put('/information',informationData);

}

//删除信息
export const informationDeleteService = (id)=>{
    return request.delete('/information?id='+id)
}